<?php require "header.php"; ?>
<link href="<?php echo MAIN_URL;?>css/style.css" type="text/css" rel="stylesheet">
<body>
<?php require "menu.php"; ?>


            <!--Banner start here-->
            <div class="banner">
                <div class="banner_inner">
                	<img src="<?php echo MAIN_URL;?>images/banner.jpg" alt="">
                </div>
            <!--Banner end here-->    
            </div>
            <!--Content start here-->
            <div class="content">
            	
                <!-- content bottom-->
                <div class="content_bottom mar_top0">
                	<!-- content left -->
                	<div class="content_left">

<script>
$(document).ready(function(){ 
	  
              $("#r_button").click(function() {	
				  
				   $(".error").hide();
				   return false;
				});
           $("#s_button").click(function() {
			   
                $(".error").hide();
                var name=$("#name").val();
                var pass=$("#password").val();

	     if(name=="" || pass=="")
	        {
		
		  $("#nameError").show();
		  return false;
	      }

           });
			
			 });
	 
</script>


                    	<h4 class="heading">Login Here</h4>
                        <p class="gray_heading">Java Tutions. Learn to success.</p>


   <form name="login" class="loginForm" action="<?php echo MAIN_URL;?>index.php/login/checklogin" method="post">
  
 <div style="height: 20px;">
 <label class="error" style="display:none; width: 221px;" id="nameError">Please Enter User Name and Password
 </label>
 </div>
   <div style="height: 35px;">
  <div class="error"> 
  <?php
    if($this->session->flashdata('logged_error'))
     {
     echo "Incorrect Username or Password";
	 session_unset();
	  
     }?>
	 </div></div>
	 
          <label>Username</label>
          <input type="text" name="name" id="name" >
           <label>Password</label>
           <input type="password" name="password" id="password" >
           <input value="Clear" type="reset" id="r_button">
		  <input value="Submit" type="submit" id="s_button">
          
  </form>
              <div style="margin-top: 190px; margin-left: 330px;"> 
			 <a style='text-decoration: none; color: #04739D; font-size: 14px' href="<?php echo MAIN_URL;?>index.php/login/forgotpassword">Forgot Password</a>
			 
			  </div>  
                    <!-- end content left -->
                    </div>
                    <!-- content right -->
                   <div class="content_right">
                    	<h4 class="heading">Our best teachers</h4>
                    	<div class="sem">
                        	<img src="<?php echo MAIN_URL;?>images/sem_teach1.png" alt="teacher">
                            <p>Study that improves your Knowledge and Personality </p>
                            <p><strong>Lory bright</strong></p> 
                        </div>
                        <div class="sem last">
                        	<img src="<?php echo MAIN_URL;?>images/sem_teach2.png" alt="teacher">
                            <p>Practical Knowledge is the thing that Industry looks always</p>
                            <p><strong>Lory bright</strong></p> 
                        </div>
                    <!--end content right -->
                    </div>
                    <div class="clear"></div>
                <!--end content bottom -->
                </div>
                
                <div class="clear"></div>
            <!--Content end here-->
            </div>
            
             <?php
			 require "footer.php";
			 ?>
            </body></html>